<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WASM.WebSite.DataEntities.AzureStorage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add Azure Storage
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Add Azure Storage</h2>
	<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
	<% using (Html.BeginForm())
		{%>
	<fieldset>
		<legend>Fields</legend>
		<p>
			<label for="asName">
				Name:</label>
			<%= Html.TextBox("asName") %>
			<%= Html.ValidationMessage("asName", "*") %>
		</p>
		<p>
			<label for="AzureStorageTypeId">
				Type:</label>
			<%= Html.DropDownList("AzureStorageTypeId",(IEnumerable<SelectListItem>)ViewData["AzureStorageType"]) %>
			<%= Html.ValidationMessage("AzureStorageTypeId", "*") %>
		</p>
		<p>
			<label for="asUserName">
				Account Name:</label>
			<%= Html.TextBox("asAccountName")%>
			<%= Html.ValidationMessage("asAccountName", "*")%>
		</p>
		<p>
			<label for="asUrl">
				Url:</label>
			<%= Html.TextBox("asUrl") %>
			<%= Html.ValidationMessage("asUrl", "*") %>
		</p>
		<p>
			<label for="asKey">
				Key:</label>
			<%= Html.TextBox("asKey") %>
			<%= Html.ValidationMessage("asKey", "*") %>
		</p>
		<p>
			<input type="submit" value="Create" />
		</p>
	</fieldset>
	<% } %>
	<div>
		<%=Html.ActionLink("Back to List", "List") %>
	</div>
</asp:Content>
